
CXX = g++

OBJFILES = mesh.o \
				skeleton.o meshWithSkeleton.o \
				skinning.o weightsScheme.o \
				deformationMesh.o \
				deformationSkelMesh.o RBFfunction.o \
				deformationMesh_rbfguided.o \
				ply.o clustering.o
###################################
all: $(OBJFILES)

.cpp.o: $*.h
	@echo "Compiling C++ code ...."
	$(CXX) -O0 -c -Wall $*.cpp

clean:
	rm *.o

mesh.o: mesh.cpp mesh.h polyhedronBuilder.h
skeleton.o: skeleton.cpp skeleton.h
meshWithSkeleton.o: meshWithSkeleton.cpp meshWithSkeleton.h
skinning.o: skinning.h skinning.cpp
weightsScheme.o: weightsScheme.h weightsScheme.cpp
deformationMesh.o: deformationMesh.h deformationMesh.cpp
deformationSkelShape.o: deformationSkelShape.h deformationSkelShape.cpp
deformationMesh_rbfguided.o: deformationMesh_rbfguided.h deformationMesh_rbfguided.cpp
RBFfunction.o: RBFfunction.h RBFfunction.cpp
ply.o: ply.h ply.c
